-- GENERATED SPELL FOR [Ragemane] --


function spell0_29664(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(51492,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29664', 566, 1)
end

function spell1_29664(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_29664', 618, 1)
end

function spell2_29664(pUnit, Event) --@Flipper Thwack,n/a--
pUnit:FullCastSpellOnTarget(50169,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29664', 638, 1)
end

function Sorts_29664(pUnit, Event)
local choix_sorts_29664 = math.random(0, 2)
if choix_sorts_29664 == 0 then
pUnit:RegisterEvent('spell0_29664', 1, 1)
end
if choix_sorts_29664 == 1 then
pUnit:RegisterEvent('spell1_29664', 1, 1)
end
if choix_sorts_29664 == 2 then
pUnit:RegisterEvent('spell2_29664', 1, 1)
end
end

function mob29664_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29664', math.random(1500, 3000), 1)
end

function mob29664_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29664_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29664_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29664, 1, 'mob29664_Action')
RegisterUnitEvent(29664, 2, 'mob29664_Leave')
RegisterUnitEvent(29664, 3, 'mob29664_Kill')
RegisterUnitEvent(29664, 4, 'mob29664_Die')
